package net.sxnic.ugr.permission;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.sxinfo.core.spring25.Dao;
import net.sxinfo.core.spring25.DefaultManager;
import net.sxnic.ugr.permission.dao.PermissionDao;

@Service("permissionManager")
public class DefaultPermissionManager extends
		DefaultManager<Permission, PermissionDao, String> implements
		PermissionManager {

	@Autowired
	private PermissionDao permissionDao;

	protected Dao<Permission, String> getEntityDao() {
		return permissionDao;
	}

	@Override
	public List<Permission> getListByResId(String rid) {
		// TODO Auto-generated method stub
		return permissionDao.getListByResId(rid);
	}

}
